package com.ikun.search;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

/**
 * Json参数生成
 */
public class JsonDemo {

    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
//        map.put("current","1");
//        map.put("size","10");

        Map<String, String> search = new HashMap<>();
        search.put("id","1");
        map.put("search",JSON.toJSONString(search));

        System.out.println("map ===> ");
        System.out.println(JSON.toJSONString(map));
    }

}
